<?php

class sfWidgetFormDateExt extends sfWidgetFormDate
{
  protected function configure($options = array(), $attributes = array())
  {
    parent::configure($options, $attributes);
    
    $this->setOption('days'  , sfContext::getInstance()->getUser()->getDateTimeFormatter()->getDaysArray());
    $this->setOption('months', sfContext::getInstance()->getUser()->getDateTimeFormatter()->getMonthsArray());
    $this->setOption('years' , sfContext::getInstance()->getUser()->getDateTimeFormatter()->getYearsArray(date('Y')- 5), date('Y') + 5);
  }
}
